package com.yxlgateway.gateway.controller;/*
package com.yxl.controller;

import com.alibaba.fastjson.JSONObject;
import com.yxlcommon.common.pojo.RespBean;
import com.yxl.service.AlipayService;
import com.yxl.service.UserService;
import com.yxlcommon.common.vo.PayVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class PayController {

    @Autowired
    private AlipayService alipayService;

    @Autowired
    private OrderService orderService;

    @Autowired
    private UserService service;

    @Autowired
    private MemberService memberService;

    @Autowired
    private ConsumptionService consumptionService;

    @Autowired
    private JSONObject jsonObject;

//    @PostMapping("/alipay")
//    public RespBean<byte[]> alipay(@RequestBody PayVo payVo) throws Exception {
//        orderService.saveOrder(payVo);
//        consumptionService.insertConsumption(payVo);
//        return RespBean.operationSuccess(200,"订单创建成功",alipayService.aliPay(payVo));
//    }
//
//    @PostMapping("/renewPay")
//    public ResultMessage<byte[]> renewPay(@RequestBody PayVo payVo) throws Exception {
//        orderService.saveOrder(payVo);
//        return ResultMessage.operationalSuccess(200, "创建成功", alipayService.renewPay(payVo));
//    }


}
*/
